cmake_minimum_required(VERSION 3.0.2)
project(mission)

set(CMAKE_BUILD_TYPE "Release")
set(CMAKE_CXX_FLAGS "-std=c++11")


find_package(catkin REQUIRED COMPONENTS
  roscpp
  rospy
  std_msgs
  px4_msgs
  quadrotor_msgs
)


catkin_package(
#  INCLUDE_DIRS include
#  LIBRARIES mission
#  CATKIN_DEPENDS roscpp rospy std_msgs
#  DEPENDS system_lib
)


include_directories(
# include
  ${catkin_INCLUDE_DIRS}
  /usr/local/include/eigen3
)


add_executable(planning_mission src/planning_mission.cpp)
target_link_libraries(planning_mission ${catkin_LIBRARIES})
add_dependencies(planning_mission px4_msgs_gencpp)#调用同一工作空间的自定义消息类型时注明依赖关系，防止发生头文件找不到的报错

#add_executable(planner_mission src/planner_mission.cpp)
#target_link_libraries(planner_mission ${catkin_LIBRARIES})
#add_dependencies(planner_mission px4_msgs_gencpp)#调用同一工作空间的自定义消息类型时注明依赖关系，防止发生头文件找不到的报错

